package com.fastloan.mgt.postloan.web;

import com.fastloan.mgt.postloan.service.ZyPostLoanMonitorService;
import com.kawins.result.ResultTo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by gelon on 2017/11/16.
 */
@RestController
@RequestMapping("/api/zy/tmp")
public class PostloanTmpController {

    @Autowired
    ZyPostLoanMonitorService postLoanMonitorService;

    /**
     * 立即执行一次贷后进件维护  临时接口
     */
    @PostMapping
    public ResultTo scanPostLoan() {
        postLoanMonitorService.scanLoanByApplication();
        return new ResultTo();
    }

}
